package com.xjrh.traintravel.collector.netty.coder.command;

/**
 * 通讯协议-常量类
 *
 * @author snps
 * @create 2022-01-18 9:58
 * @describe
 **/
public class AgreementConstant {

    /**
     * 前导码
     */
    public static final String PC_VALUE = "FEFEFEFE";

    /**
     * 帧头
     */
    public static final String SD_VALUE = "FB";

    /**
     * 帧尾
     */
    public static final String FS_VALUE = "16";

    /**
     * 校验（值）
     */
    public static final String FCS_VALUE = "AABB";

    /**
     * HEADER_LENGTH
     */
    public static final int PC_LENGTH = 4;

    /**
     * 接收数据的最小长度
     */
    public static final int BYTEBUF_IN_MIN_LENGTH = 20;

    /**
     * 接收数据的最大长度
     */
    public static final int BYTEBUF_IN_MAX_LENGTH = 2048;

}